// vue-json-pretty 菜单配置
const menuList: CommonMenuType = [
  {
    label: "折叠显示长度",
    descript: "在数据折叠的时候显示折叠的长度",
    field: "showLength"
  },
  {
    label: "显示标识线",
    descript: "嵌套的数据会显示标识线",
    field: "showLine"
  },
  { label: "显示行计数", descript: "显示行计数", field: "showLineNumber" },
  {
    label: "点击括号折叠",
    descript: "点击括号折叠",
    field: "collapsedOnClickBrackets",
    isDivider: true
  },
  { label: "显示图标", descript: "显示折叠数据的图标", field: "showIcon" },
  {
    label: "虚拟滚动",
    descript: "使用虚拟滚动(大数据量)",
    field: "virtual",
    isDivider: true
  },
  {
    label: "虚拟滚动高度",
    descript: "使用虚拟滚动时, 定义总高度",
    field: "height",
    type: "input"
  },
  {
    label: "节点高度",
    descript: "定义节点的高度(包括虚拟滚动)",
    field: "itemHeight",
    type: "input"
  },
  {
    label: "key 的双引号",
    descript: "显示 key 名的双引号",
    field: "showDoubleQuotes",
    isDivider: true
  },
  {
    label: "可编辑",
    descript: "支持可编辑",
    field: "editable",
    isDivider: true
  },
  {
    label: "编辑触发方式",
    descript: "编辑的触发方式",
    field: "editableTrigger",
    type: "enmu",
    list: [
      { label: "click", value: "click" },
      { label: "dblclick", value: "dblclick" }
    ]
  },
  {
    label: "选择节点",
    descript: "是否可以选择节点",
    field: "showSelectController",
    isDivider: true
  },
  {
    label: "节点选择方式",
    descript: "节点的选择方式(单选和多选)",
    field: "selectableType",
    type: "enmu",
    list: [
      { label: "single", value: "single" },
      { label: "multiple", value: "multiple" }
    ]
  },
  {
    label: "点击节点选择",
    descript: "点击节点的时候触发节点选择",
    field: "selectOnClickNode"
  },
  {
    label: "高亮已选择节点",
    descript: "高亮已选择节点",
    field: "highlightSelectedNode"
  },
  {
    label: "顶层数据路径",
    descript: "定义最顶层数据路径",
    field: "rootPath",
    type: "input"
  }
];

export default menuList;
